const GuToken = artifacts.require("guToken.sol");

const fromWei = (value) => {
  return web3.utils.fromWei(value.toString(), "ether");
}

const toWei = (number) => {
  return web3.utils.toWei(number.toString(), "ether");
}

module.exports = async function (callback) {
  const gutoken = await GuToken.deployed();
  let res1 = await gutoken.balanceOf("0xcce6f643eab334d3e764694af557ceb29ff2e507");
  console.log("第一个账号的值",fromWei(res1));


await gutoken.transfer(
  "0x276c408bD4f4E8C9884A2E8eBA6784745cBE6b27", toWei(10000),
{from:"0xcce6f643eab334d3e764694af557ceb29ff2e507"});


let res2 = await gutoken.balanceOf("0xcce6f643eab334d3e764694af557ceb29ff2e507");
  console.log("第一个账号的值",fromWei(res2));

  let res3 = await gutoken.balanceOf("0x276c408bD4f4E8C9884A2E8eBA6784745cBE6b27");
  console.log("第二个账号的值",fromWei(res3));


  callback();

}


